home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000305_lvm@cowlitz.com_Wed Jan 23 09:34:11 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  80 lines

  1. Article: 13141 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: lvm@cowlitz.com (Larry Mann)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Using redirection when starting K95
  6. Date: 22 Jan 2002 17:02:06 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 61
  9. Message-ID: <3d44a7c4.0201221702.429ad772@posting.google.com>
  10. References: <3d44a7c4.0201211200.7a8591b0@posting.google.com> <a2hum8$o2f$1@watsol.cc.columbia.edu>
  11. NNTP-Posting-Host: 12.230.243.34
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1011747726 30252 127.0.0.1 (23 Jan 2002 01:02:06 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 23 Jan 2002 01:02:06 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13141
  18.  
  19. Frank,
  20.  
  21. I thank you much for your assistance in focusing me in the right
  22. direction and I finally found the right place in the manual. I'm off
  23. and running. I'm impressed with your quick response. Thank you, again!
  24.  
  25. -Larry
  26.  
  27.  
  28. fdc@columbia.edu (Frank da Cruz) wrote in message news:<a2hum8$o2f$1@watsol.cc.columbia.edu>...
  29. > In article <3d44a7c4.0201211200.7a8591b0@posting.google.com>,
  30. > Larry Mann <lvm@cowlitz.com> wrote:
  31. > : 
  32. > : (I attempted to post a similar message earlier today it did appear to
  33. > : get listed so I am trying again)
  34. > :
  35. > It did appear and I did answer it, but so as not to appear unresponsive,
  36. > will answer it again, especially as this posting is not the same as your
  37. > first one.
  38. > : Some years ago I wrote several Unix shell scripts that called Kermit
  39. > : using redirection...
  40. > :
  41. > As noted in the C-Kermit book, this is not how to write scripts.  It
  42. > prevents all sorts of things from working, like GOTO, certain kinds of
  43. > loops, etc.
  44. > : ... for both providing input from a Kermit script and
  45. > : any response output to a file.  This was done with HP-UX and C-Kermit
  46. > : communicating with a remote Kermit server.
  47. > : 
  48. > : I now need to move these scripts from HP-UX and C-Kermit to Windows
  49. > : 2000 Server and K95. I have installed a Unix shell on W2K and all is
  50. > : fine except the shell script lines that call Kermit, K95, do not seem
  51. > : to accept redirection, for example:
  52. > :    k95 < in.ksc > out.txt
  53. > :
  54. > Because Kermit 95 is not a Unix program and does not read from stdin.
  55. > If it did, it wouldn't be able to see the full keyboard, which is a must
  56. > for any PC-based terminal program.
  57. > : where in.ksc contains and is communicating with a remote Kermit
  58. > : server:
  59. > :    set line com1
  60. > :    set baud 9600
  61. > :    rem dir c:/temp
  62. > : This would capture a list of filenames from the remote server into
  63. > : out.txt for further processing in the shell script.
  64. > : 
  65. > : I understand that I could provide the script name as the first item on
  66. > : the Kermit command line, such as:  k95 in.ksc   and that's fine...
  67. > : but how can I capture the standard output from this script to a file,
  68. > : out.txt?
  69. > : 
  70. > Again:
  71. >   rem dir c:/temp > filename
  72. > You could have done this in C-Kermit too.
  73. > - Frank
  74.